/**
 * @desc 用户权限
 */
export interface roles {
  roleId: string;
  roleName: string;
  dataScope: string;
}

/**
 * @desc 用户信息
 */
export interface User {
  userId: string;
  tenantId: string;
  account: string;
  nickName: string;
  userType: string;
  mobile: string;
  sex: string;
  avatar: string;
  isDefaultPassword: boolean;
}
export interface UserInfo {
  user: User;
  roles: roles[];
  permissions: string[];
  [props:string]:any
}

/**
 * @desc 登录接口返回数据
 */
export interface LoginRes {
  accessToken: string;
  token: string;
}

/**
 * @desc 登录表单数据
 */
export type loginData = {
  grantType: string;
  smsCode?: string;
  uuid?: string;
  account?: string;
  password?: string;
};

/**
 * @desc 重置密码
 */
export type ResetPasswordRes = {
  password: string;
  checkPassword?: string;
  smsCode: string;
  mobile: string;
};

/**
 * @desc 修改手机号
 */
export type ChangeMobile = {
  newMobile: string;
  smsCode: string;
};

/**
 * 部门新增/编辑人员信息
 */
export type PersonnelInfo = {
  mobile: string;
  nickName: string;
  roleIds: string[];
  post:string;
  [props:string]:any;
  time1:string,
  time2:string,
  time3:string
};


/**
 * 搜索人
 */
export type SearchUser = {
  deptName: string;
  nickName: string;
  userId: string;
  [props:string]:any
};


/**
 * 消息列表
 */
export type MessageItem = {
  id: string;
  title: string;
  content: string;
  isRead: boolean;
  sendTime: string;
};

/**
 * 跟进任务
 */
export type followTaskItem = {
  name: string;
  value: string | number;
};
